﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PhysicsSimulator
{
    class Dots :CGameObject
    {
        Texture2D _dotTexture;

        public Texture2D DotTexture
        {
            get { return _dotTexture; }
            set { _dotTexture = value; }
        }

        Vector2 _dotPositon;

        public Vector2 DotPositon
        {
            get { return _dotPositon; }
            set { _dotPositon = value; }
        }

        float _ballScale;

        public float DotScale
        {
            get { return _ballScale; }
            set { _ballScale = value; }
        }

        public Dots(SpriteBatch spriteBatch, Vector2 position, float scale) 
            : base(spriteBatch)
        {
            _dotPositon = position;
            _ballScale = scale;
        }

        public override void Init(Microsoft.Xna.Framework.Content.ContentManager contentManager)
        {
            _dotTexture = contentManager.Load<Texture2D>("Images/Launch/dot");
            base.Init(contentManager);
        }

        public override void Draw(GameTimerEventArgs timer)
        {
            SpriteBatch.Draw(_dotTexture, _dotPositon, null, Color.White, 0, new Vector2(_dotTexture.Width / 2, _dotTexture.Height / 2), _ballScale, SpriteEffects.None, 0);
            base.Draw(timer);
        }
    }
}
